Optimal. Leaf size=35 \[ \frac{\sin \left (a+b x^n\right )}{b^2 n}-\frac{x^n \cos \left (a+b x^n\right )}{b n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0323856, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.188, Rules used = {3379, 3296, 2637} \[ \frac{\sin \left (a+b x^n\right )}{b^2 n}-\frac{x^n \cos \left (a+b x^n\right )}{b n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3379
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int x^{-1+2 n} \sin \left (a+b x^n\right ) \, dx &=\frac{\operatorname{Subst}\left (\int x \sin (a+b x) \, dx,x,x^n\right )}{n}\\ &=-\frac{x^n \cos \left (a+b x^n\right )}{b n}+\frac{\operatorname{Subst}\left (\int \cos (a+b x) \, dx,x,x^n\right )}{b n}\\ &=-\frac{x^n \cos \left (a+b x^n\right )}{b n}+\frac{\sin \left (a+b x^n\right )}{b^2 n}\\ \end{align*}
Mathematica [A] time = 0.0709262, size = 30, normalized size = 0.86 \[ \frac{\sin \left (a+b x^n\right )-b x^n \cos \left (a+b x^n\right )}{b^2 n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 44, normalized size = 1.3 \begin{align*}{\frac{\sin \left ( a+b{x}^{n} \right ) - \left ( a+b{x}^{n} \right ) \cos \left ( a+b{x}^{n} \right ) +a\cos \left ( a+b{x}^{n} \right ) }{n{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.01317, size = 43, normalized size = 1.23 \begin{align*} -\frac{b x^{n} \cos \left (b x^{n} + a\right ) - \sin \left (b x^{n} + a\right )}{b^{2} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.72748, size = 68, normalized size = 1.94 \begin{align*} -\frac{b x^{n} \cos \left (b x^{n} + a\right ) - \sin \left (b x^{n} + a\right )}{b^{2} n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2 \, n - 1} \sin \left (b x^{n} + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]